class CardDataManager {
	public constructor() {
	}
	
	private static instance:CardDataManager;

	public static getInstance():CardDataManager{
		if(!CardDataManager.instance){
			CardDataManager.instance=new CardDataManager();
		}
		return CardDataManager.instance;
	}
	public cardData:Array<CardData>=[];

	public getCardData(index:number):CardData{
		var len:number=this.cardData.length;
		for(var i=0;i<len;i++){
			if(this.cardData[i].index==index){
				return this.cardData[i];
			}
		}
		return null;
	}
}